const { defineConfig } = require('@vue/cli-service')
const path = require('path')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  configureWebpack: {
    resolve: {
      extensions: ['.js', '.vue', '.json'],
      alias: {
        '@': path.join(__dirname, '/', 'src')
      }
    }
  },
  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          plugins: [
            require('postcss-pxtorem')({
              rootValue: 128, // 设计稿 / 10  这里用的是宽 1280px
              propList: ['*']
            })
          ]
        }
      }
    }
  },
  devServer: {
    open: true,
    proxy: {

    }
  }
})
